/**
 * meta 可配置参数
 * @param {boolean} icon 页面icon
 * @param {boolean} keepAlive 是否缓存页面
 * @param {string} title 页面标题
 */
export default [
  {
    path: '/',
    redirect: '/home',
    component: () => import('@/views/index.vue'),
    children: [
      {
        path: 'home',
        name: 'home',
        component: () => import('@/views/home/home.vue'),
        meta: {
          icon: '',
          keepAlive: true,
          title: 'home'
        },
      },
      {
        path: 'demo',
        name: 'demo',
        component: () => import('@/views/demo/demo.vue'),
        redirect: '/demo/elTree',
        meta: {
          icon: '',
          keepAlive: true,
          title: 'demo'
        },
        children: [
          {
            path: '/demo/elTree',
            name: 'elTree',
            component: () => import('@/views/demo/elTree/elTree.vue'),
            meta: {
              icon: '',
              keepAlive: true,
              title: 'elTree'
            },
          },
          {
            path: '/demo/timeBlock',
            name: 'timeBlock',
            component: () => import('@/views/demo/timeBlock/timeBlock.vue'),
            meta: {
              icon: '',
              keepAlive: true,
              title: 'timeBlock'
            },
          }
        ]
      },
      {
        path: 'article',
        name: 'article',
        component: () => import('@/views/article/article.vue'),
        meta: {
          icon: '',
          keepAlive: true,
          title: 'article'
        }
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/login.vue'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'login'
    }
  }
]
